{smcl}
{txt}{sf}{ul off}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\J.PARK\Dropbox\Discrimination Project_for me\Organizational Diversity\2023 Version_Merging\FINAL\CFA_2019.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 8 Aug 2024, 13:26:22
{txt}
{com}. 
. import delimited "C:\Users\J.PARK\Dropbox\DISCRIMINATION PROJECT\FEVS\FEVS_2010-2019\FEVS_2019_PRDF_Revised_2020-04-27.csv"
{res}{txt}(encoding automatically selected: ISO-8859-1)
{res}{text}(95 vars, 615,395 obs)

{com}. 
. drop if q17=="X"
{txt}(23,195 observations deleted)

{com}. drop if q17==""
{txt}(2,698 observations deleted)

{com}. drop if q37=="X"
{txt}(25,688 observations deleted)

{com}. drop if q37==""
{txt}(15,914 observations deleted)

{com}. drop if q38=="X"
{txt}(23,224 observations deleted)

{com}. drop if q38==""
{txt}(2,485 observations deleted)

{com}. drop if q15=="X"
{txt}(3,739 observations deleted)

{com}. drop if q15==""
{txt}(1,346 observations deleted)

{com}. drop if q22=="X"
{txt}(18,879 observations deleted)

{com}. drop if q22==""
{txt}(2,755 observations deleted)

{com}. drop if q25=="X"
{txt}(10,947 observations deleted)

{com}. drop if q25==""
{txt}(1,525 observations deleted)

{com}. drop if q33=="X"
{txt}(9,923 observations deleted)

{com}. drop if q33==""
{txt}(1,899 observations deleted)

{com}. drop if q48==.
{txt}(4,525 observations deleted)

{com}. drop if q49==.
{txt}(626 observations deleted)

{com}. destring q17, replace
{txt}q17: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q37, replace
{txt}q37: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q38, replace
{txt}q38: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q15, replace
{txt}q15: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q22, replace
{txt}q22: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q25, replace
{txt}q25: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q33, replace
{txt}q33: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. drop if q55=="X"
{txt}(8,882 observations deleted)

{com}. drop if q55==""
{txt}(6,271 observations deleted)

{com}. drop if q45=="X"
{txt}(10,769 observations deleted)

{com}. drop if q45==""
{txt}(940 observations deleted)

{com}. drop if q34=="X"
{txt}(7,547 observations deleted)

{com}. drop if q34==""
{txt}(989 observations deleted)

{com}. destring q55, replace
{txt}q55: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q45, replace
{txt}q45: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q34, replace
{txt}q34: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. drop if dsuper=="X"
{txt}(0 observations deleted)

{com}. drop if dsuper==""
{txt}(37,639 observations deleted)

{com}. drop if dsex=="X"
{txt}(0 observations deleted)

{com}. drop if dsex==""
{txt}(13,416 observations deleted)

{com}. drop if dminority=="X"
{txt}(0 observations deleted)

{com}. drop if dminority==""
{txt}(2,755 observations deleted)

{com}. gen minority = 0 if dminority=="B"
{txt}(130,378 missing values generated)

{com}. replace minority = 1 if dminority=="A"
{txt}(130,378 real changes made)

{com}. gen gender = 1 if dsex == "B"
{txt}(216,743 missing values generated)

{com}. replace gender = 0 if dsex == "A"
{txt}(216,743 real changes made)

{com}. gen supervisor = 1 if dsuper == "B" 
{txt}(288,813 missing values generated)

{com}. replace supervisor = 0 if dsuper == "A"
{txt}(288,813 real changes made)

{com}. 
. svyset [pweight=postwt]

{txt}Sampling weights:{col 19}{res}postwt
             {txt}VCE:{col 19}{res}linearized
     {txt}Single unit:{col 19}{res}missing
        {txt}Strata 1:{col 19}<one>
 Sampling unit 1:{col 19}<observations>
           FPC 1:{col 19}<zero>
{p2colreset}{...}

{com}. 
. svy linearized : sem (JUSTICE -> DISTRIBUTIVE, ) (JUSTICE -> PROCEDURAL, ) (JUSTICE -> INTERPERSONAL, ) (DISTRIBUTIVE -> q22, ) (DISTRIBUTIVE -> q25, ) (DISTRIBUTIVE -> q33, ) (PROCEDURAL -> q15, ) (PROCEDURAL -> q17, ) (PROCEDURAL -> q37, ) (PROCEDURAL -> q38, )(INTERPERSONAL -> q48, ) (INTERPERSONAL -> q49, ), standardized latent(JUSTICE DISTRIBUTIVE PROCEDURAL INTERPERSONAL ) nocapslatent
{res}{txt}(running {bf:sem} on estimation sample)
{res}
{txt}{col 1}Survey: Structural equation model{col 51}{lalign 15:Number of obs}{col 66} = {res}{ralign 10:376,819}
{txt}{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 7:1}{txt}{col 51}{lalign 15:Population size}{col 66} = {res}{ralign 10:851,109.47}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 7:376,819}{txt}{col 51}{lalign 15:Design df}{col 66} = {res}{ralign 10:376,818}

{p 0 7}{space 1}{text:( 1)}{space 1} [q22]DISTRIBUTIVE = 1{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} [q15]PROCEDURAL = 1{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} [q48]INTERPERSONAL = 1{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} [DISTRIBUTIVE]JUSTICE = 1{p_end}
{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}  Linearized
{col 1}       Standardized{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural         {col 21}{txt}{c |}
{space 2}{col 3}DISTRIBUTIVE     {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .8552463{col 33}{space 2} .0012086{col 44}{space 1}  707.66{col 53}{space 3}0.000{col 61}{space 4} .8528775{col 74}{space 3}  .857615
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}PROCEDURAL       {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2}  .982044{col 33}{space 2} .0012785{col 44}{space 1}  768.14{col 53}{space 3}0.000{col 61}{space 4} .9795382{col 74}{space 3} .9845498
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}INTERPERSONAL    {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .7041674{col 33}{space 2} .0014641{col 44}{space 1}  480.96{col 53}{space 3}0.000{col 61}{space 4} .7012978{col 74}{space 3}  .707037
{txt}{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Measurement        {col 21}{txt}{c |}
{space 2}{col 3}q22              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .8483665{col 33}{space 2} .0008738{col 44}{space 1}  970.95{col 53}{space 3}0.000{col 61}{space 4}  .846654{col 74}{space 3}  .850079
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.497205{col 33}{space 2} .0034935{col 44}{space 1}  714.82{col 53}{space 3}0.000{col 61}{space 4} 2.490358{col 74}{space 3} 2.504052
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q25              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .8418377{col 33}{space 2} .0009187{col 44}{space 1}  916.36{col 53}{space 3}0.000{col 61}{space 4} .8400371{col 74}{space 3} .8436382
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.681314{col 33}{space 2} .0040579{col 44}{space 1}  660.76{col 53}{space 3}0.000{col 61}{space 4} 2.673361{col 74}{space 3} 2.689267
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q33              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .7287543{col 33}{space 2} .0011913{col 44}{space 1}  611.72{col 53}{space 3}0.000{col 61}{space 4} .7264194{col 74}{space 3} .7310893
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.324591{col 33}{space 2} .0029133{col 44}{space 1}  797.92{col 53}{space 3}0.000{col 61}{space 4} 2.318881{col 74}{space 3} 2.330302
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q15              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .6445611{col 33}{space 2} .0016763{col 44}{space 1}  384.51{col 53}{space 3}0.000{col 61}{space 4} .6412756{col 74}{space 3} .6478466
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.365612{col 33}{space 2} .0063515{col 44}{space 1}  529.89{col 53}{space 3}0.000{col 61}{space 4} 3.353163{col 74}{space 3}  3.37806
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q17              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .7758163{col 33}{space 2}  .001158{col 44}{space 1}  669.98{col 53}{space 3}0.000{col 61}{space 4} .7735467{col 74}{space 3} .7780859
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.185794{col 33}{space 2} .0058175{col 44}{space 1}  547.63{col 53}{space 3}0.000{col 61}{space 4} 3.174392{col 74}{space 3} 3.197196
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q37              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .8416744{col 33}{space 2} .0009944{col 44}{space 1}  846.45{col 53}{space 3}0.000{col 61}{space 4} .8397255{col 74}{space 3} .8436233
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.853655{col 33}{space 2} .0046677{col 44}{space 1}  611.36{col 53}{space 3}0.000{col 61}{space 4} 2.844507{col 74}{space 3} 2.862804
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q38              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .8269617{col 33}{space 2} .0010856{col 44}{space 1}  761.79{col 53}{space 3}0.000{col 61}{space 4}  .824834{col 74}{space 3} .8290893
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.492006{col 33}{space 2} .0067917{col 44}{space 1}  514.16{col 53}{space 3}0.000{col 61}{space 4} 3.478694{col 74}{space 3} 3.505317
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q48              {col 21}{c |}
{space 6}INTERPERSONAL {c |}{col 21}{res}{space 2} .9440361{col 33}{space 2} .0007681{col 44}{space 1} 1229.07{col 53}{space 3}0.000{col 61}{space 4} .9425307{col 74}{space 3} .9455416
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 4.015904{col 33}{space 2} .0085577{col 44}{space 1}  469.27{col 53}{space 3}0.000{col 61}{space 4} 3.999131{col 74}{space 3} 4.032677
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q49              {col 21}{c |}
{space 6}INTERPERSONAL {c |}{col 21}{res}{space 2}   .91727{col 33}{space 2} .0008551{col 44}{space 1} 1072.71{col 53}{space 3}0.000{col 61}{space 4}  .915594{col 74}{space 3} .9189459
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 4.428955{col 33}{space 2} .0103342{col 44}{space 1}  428.57{col 53}{space 3}0.000{col 61}{space 4}   4.4087{col 74}{space 3}  4.44921
{txt}{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}var(e.q22){c |}{col 21}{res}{space 2} .2802743{col 33}{space 2} .0014825{col 61}{space 4} .2773836{col 74}{space 3} .2831951
{txt}{space 10}var(e.q25){c |}{col 21}{res}{space 2} .2913093{col 33}{space 2} .0015468{col 61}{space 4} .2882935{col 74}{space 3} .2943568
{txt}{space 10}var(e.q33){c |}{col 21}{res}{space 2} .4689171{col 33}{space 2} .0017364{col 61}{space 4} .4655263{col 74}{space 3} .4723327
{txt}{space 10}var(e.q15){c |}{col 21}{res}{space 2}  .584541{col 33}{space 2}  .002161{col 61}{space 4} .5803209{col 74}{space 3} .5887918
{txt}{space 10}var(e.q17){c |}{col 21}{res}{space 2} .3981091{col 33}{space 2} .0017968{col 61}{space 4} .3946031{col 74}{space 3} .4016463
{txt}{space 10}var(e.q37){c |}{col 21}{res}{space 2} .2915842{col 33}{space 2} .0016738{col 61}{space 4} .2883219{col 74}{space 3} .2948834
{txt}{space 10}var(e.q38){c |}{col 21}{res}{space 2} .3161344{col 33}{space 2} .0017954{col 61}{space 4} .3126349{col 74}{space 3}  .319673
{txt}{space 10}var(e.q48){c |}{col 21}{res}{space 2} .1087958{col 33}{space 2} .0014502{col 61}{space 4} .1059902{col 74}{space 3} .1116756
{txt}{space 10}var(e.q49){c |}{col 21}{res}{space 2} .1586158{col 33}{space 2} .0015687{col 61}{space 4} .1555708{col 74}{space 3} .1617204
{txt}{space 1}var(e.DISTRIBUTIVE){c |}{col 21}{res}{space 2} .2685538{col 33}{space 2} .0020672{col 61}{space 4} .2645325{col 74}{space 3} .2726362
{txt}{space 3}var(e.PROCEDURAL){c |}{col 21}{res}{space 2} .0355896{col 33}{space 2}  .002511{col 61}{space 4} .0309932{col 74}{space 3} .0408676
{txt}var(e.INTERPERSONAL){c |}{col 21}{res}{space 2} .5041482{col 33}{space 2} .0020619{col 61}{space 4} .5001231{col 74}{space 3} .5082058
{txt}{space 8}var(JUSTICE){c |}{col 21}{res}{space 2}        1{col 33}{space 2}        .{col 61}{space 4}        .{col 74}{space 3}        .
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. estat gof, stats(all)
{res}
{txt}{hline 21}{c TT}{hline 54}
{lalign 21:Fit statistic}{c |}      Value   Description
{hline 21}{c +}{hline 54}
{lalign 21:Size of residuals}{c |}
{ralign 20:SRMR} {c |} {res}{ralign 10:     0.040}{txt}   Standardized root mean squared residual
{ralign 20:CD} {c |} {res}{ralign 10:     0.969}{txt}   Coefficient of determination
{hline 21}{c BT}{hline 54}
{p 0 2 2 75}Note: model was fit with{txt} svy: prefix; only stats(residuals) valid.{p_end}

{com}. 
. predict justice, latent(JUSTICE)
{res}{txt}
{com}. 
. svy linearized : sem (DIVERSITY -> q34, ) (DIVERSITY -> q45, ) (DIVERSITY -> q55, ), standardized latent(DIVERSITY) nocapslatent
{res}{txt}(running {bf:sem} on estimation sample)
{res}
{txt}{col 1}Survey: Structural equation model{col 51}{lalign 15:Number of obs}{col 66} = {res}{ralign 10:376,819}
{txt}{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 7:1}{txt}{col 51}{lalign 15:Population size}{col 66} = {res}{ralign 10:851,109.47}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 7:376,819}{txt}{col 51}{lalign 15:Design df}{col 66} = {res}{ralign 10:376,818}

{p 0 7}{space 1}{text:( 1)}{space 1} [q34]DIVERSITY = 1{p_end}
{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 15}{c |}{col 27}  Linearized
{col 1} Standardized{col 15}{c |} Coefficient{col 27}  std. err.{col 39}      t{col 47}   P>|t|{col 55}     [95% con{col 68}f. interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Measurement  {col 15}{txt}{c |}
{space 2}{col 3}q34        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .6937868{col 27}{space 2} .0017305{col 38}{space 1}  400.93{col 47}{space 3}0.000{col 55}{space 4} .6903951{col 68}{space 3} .6971784
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.398162{col 27}{space 2} .0059866{col 38}{space 1}  567.63{col 47}{space 3}0.000{col 55}{space 4} 3.386428{col 68}{space 3} 3.409896
{space 2}{txt}{hline 12}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q45        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .7569986{col 27}{space 2} .0016802{col 38}{space 1}  450.55{col 47}{space 3}0.000{col 55}{space 4} .7537055{col 68}{space 3} .7602917
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.796957{col 27}{space 2} .0074808{col 38}{space 1}  507.56{col 47}{space 3}0.000{col 55}{space 4} 3.782295{col 68}{space 3} 3.811619
{space 2}{txt}{hline 12}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q55        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .8158224{col 27}{space 2}  .001565{col 38}{space 1}  521.28{col 47}{space 3}0.000{col 55}{space 4}  .812755{col 68}{space 3} .8188899
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.680882{col 27}{space 2} .0071796{col 38}{space 1}  512.69{col 47}{space 3}0.000{col 55}{space 4} 3.666811{col 68}{space 3} 3.694954
{txt}{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}var(e.q34){c |}{col 15}{res}{space 2} .5186599{col 27}{space 2} .0024011{col 55}{space 4} .5139751{col 68}{space 3} .5233875
{txt}{space 4}var(e.q45){c |}{col 15}{res}{space 2} .4269532{col 27}{space 2} .0025438{col 55}{space 4} .4219964{col 68}{space 3} .4319681
{txt}{space 4}var(e.q55){c |}{col 15}{res}{space 2} .3344337{col 27}{space 2} .0025536{col 55}{space 4} .3294661{col 68}{space 3} .3394763
{txt}var(DIVERSITY){c |}{col 15}{res}{space 2}        1{col 27}{space 2}        .{col 55}{space 4}        .{col 68}{space 3}        .
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. estat gof, stats(all)
{res}
{txt}{hline 21}{c TT}{hline 54}
{lalign 21:Fit statistic}{c |}      Value   Description
{hline 21}{c +}{hline 54}
{lalign 21:Size of residuals}{c |}
{ralign 20:SRMR} {c |} {res}{ralign 10:     0.000}{txt}   Standardized root mean squared residual
{ralign 20:CD} {c |} {res}{ralign 10:     0.810}{txt}   Coefficient of determination
{hline 21}{c BT}{hline 54}
{p 0 2 2 75}Note: model was fit with{txt} svy: prefix; only stats(residuals) valid.{p_end}

{com}. 
. predict diversity, latent(DIVERSITY)
{res}{txt}
{com}. 
. keep if agency =="AM" | agency =="IB" | agency =="FQ"| agency =="ED" | agency =="DN" | agency =="HU" | agency =="ST" | agency =="EP"  | agency =="EE"| agency =="FC" | agency =="DR" | agency =="FT" | agency =="GS" | agency =="NQ" | agency =="NN" | agency =="CU" | agency =="SN" | agency =="NL" | agency =="NF" | agency =="NU" | agency =="OM" | agency =="BG" | agency =="RR" | agency =="SE" | agency =="SB" | agency =="SZ" | level1 =="DD34" | level1 =="DD10" | level1 =="DD63" | level1 =="DD35" | level1 =="DD04" | level1 =="DD07" | level1 =="DD27" | level1 =="DD26" | level1 =="DD60" | level1 =="CM03" | level1 =="CM06" | level1 =="CM08" | level1 =="CM09" | level1 =="CM14" | level1 =="DD16" | level1 =="HE02" | level1 =="HE04" | level1 =="HE05" | level1 =="HE06" | level1 =="HE07" | level1 =="HE08" | level1 =="HE09" | level1 =="HE10" | level1 =="HE12" | level1 =="HS04" | level1 =="HS05" | level1 =="HS14" | level1 =="HS01" | level1 =="HS03" | level1 =="HS02" | level1 =="HS06" | level1 =="HS12" | level1 =="DJAT" | level1 =="DJBP" | level1 =="DJEA" | level1 =="DJIR" | level1 =="DJOA" | level1 =="DJFB" | level1 =="DJMS" | level1 =="DJTP" | level1 =="DL03" | level1 =="DL10" | level1 =="DL09" | level1 =="DL04" | level1 =="DL06" | level1 =="DL05" | level1 =="DL11" | agency =="AF" | agency =="AR" | level1 =="IN03" | level1 =="IN01" | level1 =="IN02" | level1 =="IN07" | level1 =="IN05" | level1 =="IN06" | level1 =="IN14" | agency =="NV" | level1 =="TRAI" | level1 =="TR91" | level1 =="TRFD" | level1 =="TR93" | level1 =="TRAJ" | level1 =="TRTG" | level1 =="TRAD" | level1 =="TD03" | level1 =="TD04" | level1 =="TD05" | level1 =="DD01"
{txt}(36,665 observations deleted)

{com}. 
. svy linearized : sem (JUSTICE -> DISTRIBUTIVE, ) (JUSTICE -> PROCEDURAL, ) (JUSTICE -> INTERPERSONAL, ) (DISTRIBUTIVE -> q22, ) (DISTRIBUTIVE -> q25, ) (DISTRIBUTIVE -> q33, ) (PROCEDURAL -> q15, ) (PROCEDURAL -> q17, ) (PROCEDURAL -> q37, ) (PROCEDURAL -> q38, )(INTERPERSONAL -> q48, ) (INTERPERSONAL -> q49, ), standardized latent(JUSTICE DISTRIBUTIVE PROCEDURAL INTERPERSONAL ) nocapslatent
{res}{txt}(running {bf:sem} on estimation sample)
{res}
{txt}{col 1}Survey: Structural equation model{col 51}{lalign 15:Number of obs}{col 66} = {res}{ralign 10:340,154}
{txt}{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 7:1}{txt}{col 51}{lalign 15:Population size}{col 66} = {res}{ralign 10:784,163.27}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 7:340,154}{txt}{col 51}{lalign 15:Design df}{col 66} = {res}{ralign 10:340,153}

{p 0 7}{space 1}{text:( 1)}{space 1} [q22]DISTRIBUTIVE = 1{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} [q15]PROCEDURAL = 1{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} [q48]INTERPERSONAL = 1{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} [DISTRIBUTIVE]JUSTICE = 1{p_end}
{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}  Linearized
{col 1}       Standardized{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural         {col 21}{txt}{c |}
{space 2}{col 3}DISTRIBUTIVE     {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .8563645{col 33}{space 2} .0012706{col 44}{space 1}  673.97{col 53}{space 3}0.000{col 61}{space 4} .8538741{col 74}{space 3} .8588549
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}PROCEDURAL       {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .9824239{col 33}{space 2} .0013374{col 44}{space 1}  734.59{col 53}{space 3}0.000{col 61}{space 4} .9798027{col 74}{space 3} .9850451
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}INTERPERSONAL    {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .7068162{col 33}{space 2} .0015435{col 44}{space 1}  457.94{col 53}{space 3}0.000{col 61}{space 4}  .703791{col 74}{space 3} .7098414
{txt}{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Measurement        {col 21}{txt}{c |}
{space 2}{col 3}q22              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .8487436{col 33}{space 2} .0009205{col 44}{space 1}  922.04{col 53}{space 3}0.000{col 61}{space 4} .8469395{col 74}{space 3} .8505478
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.498966{col 33}{space 2} .0037005{col 44}{space 1}  675.30{col 53}{space 3}0.000{col 61}{space 4} 2.491713{col 74}{space 3} 2.506219
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q25              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .8425084{col 33}{space 2} .0009676{col 44}{space 1}  870.71{col 53}{space 3}0.000{col 61}{space 4} .8406119{col 74}{space 3} .8444049
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.686664{col 33}{space 2}  .004311{col 44}{space 1}  623.21{col 53}{space 3}0.000{col 61}{space 4} 2.678214{col 74}{space 3} 2.695113
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q33              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .7281371{col 33}{space 2} .0012587{col 44}{space 1}  578.51{col 53}{space 3}0.000{col 61}{space 4} .7256702{col 74}{space 3}  .730604
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.329912{col 33}{space 2} .0030958{col 44}{space 1}  752.61{col 53}{space 3}0.000{col 61}{space 4} 2.323845{col 74}{space 3}  2.33598
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q15              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .6449661{col 33}{space 2} .0017667{col 44}{space 1}  365.06{col 53}{space 3}0.000{col 61}{space 4} .6415033{col 74}{space 3} .6484288
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.372082{col 33}{space 2} .0067423{col 44}{space 1}  500.14{col 53}{space 3}0.000{col 61}{space 4} 3.358868{col 74}{space 3} 3.385297
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q17              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .7758585{col 33}{space 2} .0012263{col 44}{space 1}  632.69{col 53}{space 3}0.000{col 61}{space 4}  .773455{col 74}{space 3}  .778262
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.205972{col 33}{space 2} .0062347{col 44}{space 1}  514.21{col 53}{space 3}0.000{col 61}{space 4} 3.193753{col 74}{space 3} 3.218192
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q37              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .8423312{col 33}{space 2} .0010447{col 44}{space 1}  806.26{col 53}{space 3}0.000{col 61}{space 4} .8402835{col 74}{space 3} .8443788
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.856159{col 33}{space 2} .0049451{col 44}{space 1}  577.58{col 53}{space 3}0.000{col 61}{space 4} 2.846467{col 74}{space 3} 2.865851
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q38              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .8279697{col 33}{space 2} .0011413{col 44}{space 1}  725.49{col 53}{space 3}0.000{col 61}{space 4} .8257328{col 74}{space 3} .8302065
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.497418{col 33}{space 2} .0072017{col 44}{space 1}  485.64{col 53}{space 3}0.000{col 61}{space 4} 3.483303{col 74}{space 3} 3.511534
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q48              {col 21}{c |}
{space 6}INTERPERSONAL {c |}{col 21}{res}{space 2} .9440084{col 33}{space 2} .0008095{col 44}{space 1} 1166.21{col 53}{space 3}0.000{col 61}{space 4} .9424219{col 74}{space 3} .9455949
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}  4.01509{col 33}{space 2} .0090401{col 44}{space 1}  444.14{col 53}{space 3}0.000{col 61}{space 4} 3.997371{col 74}{space 3} 4.032808
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q49              {col 21}{c |}
{space 6}INTERPERSONAL {c |}{col 21}{res}{space 2}  .917175{col 33}{space 2} .0009022{col 44}{space 1} 1016.62{col 53}{space 3}0.000{col 61}{space 4} .9154068{col 74}{space 3} .9189433
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}  4.43396{col 33}{space 2} .0109367{col 44}{space 1}  405.42{col 53}{space 3}0.000{col 61}{space 4} 4.412524{col 74}{space 3} 4.455396
{txt}{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}var(e.q22){c |}{col 21}{res}{space 2} .2796342{col 33}{space 2} .0015625{col 61}{space 4} .2765884{col 74}{space 3} .2827136
{txt}{space 10}var(e.q25){c |}{col 21}{res}{space 2} .2901795{col 33}{space 2} .0016304{col 61}{space 4} .2870014{col 74}{space 3} .2933928
{txt}{space 10}var(e.q33){c |}{col 21}{res}{space 2} .4698163{col 33}{space 2} .0018329{col 61}{space 4} .4662375{col 74}{space 3} .4734226
{txt}{space 10}var(e.q15){c |}{col 21}{res}{space 2} .5840188{col 33}{space 2}  .002279{col 61}{space 4} .5795691{col 74}{space 3} .5885026
{txt}{space 10}var(e.q17){c |}{col 21}{res}{space 2} .3980436{col 33}{space 2} .0019028{col 61}{space 4} .3943315{col 74}{space 3} .4017906
{txt}{space 10}var(e.q37){c |}{col 21}{res}{space 2} .2904782{col 33}{space 2}   .00176{col 61}{space 4}  .287049{col 74}{space 3} .2939484
{txt}{space 10}var(e.q38){c |}{col 21}{res}{space 2} .3144663{col 33}{space 2} .0018899{col 61}{space 4} .3107839{col 74}{space 3} .3181922
{txt}{space 10}var(e.q48){c |}{col 21}{res}{space 2} .1088481{col 33}{space 2} .0015283{col 61}{space 4} .1058936{col 74}{space 3} .1118851
{txt}{space 10}var(e.q49){c |}{col 21}{res}{space 2}   .15879{col 33}{space 2} .0016549{col 61}{space 4} .1555793{col 74}{space 3} .1620669
{txt}{space 1}var(e.DISTRIBUTIVE){c |}{col 21}{res}{space 2} .2666398{col 33}{space 2} .0021762{col 61}{space 4} .2624084{col 74}{space 3} .2709395
{txt}{space 3}var(e.PROCEDURAL){c |}{col 21}{res}{space 2} .0348433{col 33}{space 2} .0026277{col 61}{space 4} .0300555{col 74}{space 3} .0403937
{txt}var(e.INTERPERSONAL){c |}{col 21}{res}{space 2} .5004108{col 33}{space 2} .0021819{col 61}{space 4} .4961526{col 74}{space 3} .5047056
{txt}{space 8}var(JUSTICE){c |}{col 21}{res}{space 2}        1{col 33}{space 2}        .{col 61}{space 4}        .{col 74}{space 3}        .
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. estat gof, stats(all)
{res}
{txt}{hline 21}{c TT}{hline 54}
{lalign 21:Fit statistic}{c |}      Value   Description
{hline 21}{c +}{hline 54}
{lalign 21:Size of residuals}{c |}
{ralign 20:SRMR} {c |} {res}{ralign 10:     0.040}{txt}   Standardized root mean squared residual
{ralign 20:CD} {c |} {res}{ralign 10:     0.969}{txt}   Coefficient of determination
{hline 21}{c BT}{hline 54}
{p 0 2 2 75}Note: model was fit with{txt} svy: prefix; only stats(residuals) valid.{p_end}

{com}. 
. predict justice2, latent (JUSTICE)
{res}{txt}
{com}. 
. svy linearized : sem (DIVERSITY -> q34, ) (DIVERSITY -> q45, ) (DIVERSITY -> q55, ), standardized latent(DIVERSITY) nocapslatent
{res}{txt}(running {bf:sem} on estimation sample)
{res}
{txt}{col 1}Survey: Structural equation model{col 51}{lalign 15:Number of obs}{col 66} = {res}{ralign 10:340,154}
{txt}{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 7:1}{txt}{col 51}{lalign 15:Population size}{col 66} = {res}{ralign 10:784,163.27}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 7:340,154}{txt}{col 51}{lalign 15:Design df}{col 66} = {res}{ralign 10:340,153}

{p 0 7}{space 1}{text:( 1)}{space 1} [q34]DIVERSITY = 1{p_end}
{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 15}{c |}{col 27}  Linearized
{col 1} Standardized{col 15}{c |} Coefficient{col 27}  std. err.{col 39}      t{col 47}   P>|t|{col 55}     [95% con{col 68}f. interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Measurement  {col 15}{txt}{c |}
{space 2}{col 3}q34        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .6959757{col 27}{space 2}  .001817{col 38}{space 1}  383.03{col 47}{space 3}0.000{col 55}{space 4} .6924144{col 68}{space 3}  .699537
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.405602{col 27}{space 2} .0063456{col 38}{space 1}  536.69{col 47}{space 3}0.000{col 55}{space 4} 3.393165{col 68}{space 3} 3.418039
{space 2}{txt}{hline 12}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q45        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .7606252{col 27}{space 2} .0017587{col 38}{space 1}  432.48{col 47}{space 3}0.000{col 55}{space 4} .7571781{col 68}{space 3} .7640723
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.786908{col 27}{space 2} .0078692{col 38}{space 1}  481.23{col 47}{space 3}0.000{col 55}{space 4} 3.771485{col 68}{space 3} 3.802331
{space 2}{txt}{hline 12}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q55        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .8170186{col 27}{space 2} .0016386{col 38}{space 1}  498.60{col 47}{space 3}0.000{col 55}{space 4}  .813807{col 68}{space 3} .8202302
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.686939{col 27}{space 2} .0076167{col 38}{space 1}  484.06{col 47}{space 3}0.000{col 55}{space 4} 3.672011{col 68}{space 3} 3.701867
{txt}{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}var(e.q34){c |}{col 15}{res}{space 2} .5156178{col 27}{space 2} .0025292{col 55}{space 4} .5106844{col 68}{space 3} .5205989
{txt}{space 4}var(e.q45){c |}{col 15}{res}{space 2} .4214493{col 27}{space 2} .0026755{col 55}{space 4}  .416238{col 68}{space 3}  .426726
{txt}{space 4}var(e.q55){c |}{col 15}{res}{space 2} .3324806{col 27}{space 2} .0026776{col 55}{space 4} .3272739{col 68}{space 3} .3377702
{txt}var(DIVERSITY){c |}{col 15}{res}{space 2}        1{col 27}{space 2}        .{col 55}{space 4}        .{col 68}{space 3}        .
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. estat gof, stats(all)
{res}
{txt}{hline 21}{c TT}{hline 54}
{lalign 21:Fit statistic}{c |}      Value   Description
{hline 21}{c +}{hline 54}
{lalign 21:Size of residuals}{c |}
{ralign 20:SRMR} {c |} {res}{ralign 10:     0.000}{txt}   Standardized root mean squared residual
{ralign 20:CD} {c |} {res}{ralign 10:     0.812}{txt}   Coefficient of determination
{hline 21}{c BT}{hline 54}
{p 0 2 2 75}Note: model was fit with{txt} svy: prefix; only stats(residuals) valid.{p_end}

{com}. 
. predict diversity2, latent (DIVERSITY)
{res}{txt}
{com}. 
. sum justice, detail

                   {txt}Factor score (JUSTICE)
{hline 61}
      Percentiles      Smallest
 1%    {res}-2.323485       -2.45655
{txt} 5%    {res}-1.662368       -2.45655
{txt}10%    {res}-1.153045       -2.45655       {txt}Obs         {res}    340,154
{txt}25%    {res} -.407963       -2.45655       {txt}Sum of wgt. {res}    340,154

{txt}50%    {res} .1957033                      {txt}Mean          {res} .0487705
                        {txt}Largest       Std. dev.     {res}  .839178
{txt}75%    {res} .6515452       1.243047
{txt}90%    {res} 1.080769       1.243047       {txt}Variance      {res} .7042197
{txt}95%    {res} 1.243047       1.243047       {txt}Skewness      {res}-.7959161
{txt}99%    {res} 1.243047       1.243047       {txt}Kurtosis      {res} 3.276174
{txt}
{com}. 
. sum justice2, detail

                   {txt}Factor score (JUSTICE)
{hline 61}
      Percentiles      Smallest
 1%    {res}-2.334767       -2.46851
{txt} 5%    {res}-1.672454       -2.46851
{txt}10%    {res}-1.161056       -2.46851       {txt}Obs         {res}    340,154
{txt}25%    {res} -.414387       -2.46851       {txt}Sum of wgt. {res}    340,154

{txt}50%    {res} .1908438                      {txt}Mean          {res} .0436003
                        {txt}Largest       Std. dev.     {res}   .84125
{txt}75%    {res} .6474647       1.240284
{txt}90%    {res} 1.078364       1.240284       {txt}Variance      {res} .7077015
{txt}95%    {res} 1.240284       1.240284       {txt}Skewness      {res}-.7964859
{txt}99%    {res} 1.240284       1.240284       {txt}Kurtosis      {res} 3.277328
{txt}
{com}. 
. sum diversity, detail

                  {txt}Factor score (DIVERSITY)
{hline 61}
      Percentiles      Smallest
 1%    {res}-2.096984      -2.096984
{txt} 5%    {res}-1.268305      -2.096984
{txt}10%    {res}-.7841291      -2.096984       {txt}Obs         {res}    340,154
{txt}25%    {res}-.2774073      -2.096984       {txt}Sum of wgt. {res}    340,154

{txt}50%    {res} .1369326                      {txt}Mean          {res} .0319671
                        {txt}Largest       Std. dev.     {res} .6549899
{txt}75%    {res}  .528726       .8815715
{txt}90%    {res} .8815715       .8815715       {txt}Variance      {res} .4290118
{txt}95%    {res} .8815715       .8815715       {txt}Skewness      {res}-.9590173
{txt}99%    {res} .8815715       .8815715       {txt}Kurtosis      {res} 3.995964
{txt}
{com}. 
. sum diversity2, detail

                  {txt}Factor score (DIVERSITY)
{hline 61}
      Percentiles      Smallest
 1%    {res}-2.102011      -2.102011
{txt} 5%    {res}-1.270128      -2.102011
{txt}10%    {res}-.7874214      -2.102011       {txt}Obs         {res}    340,154
{txt}25%    {res}-.2811877      -2.102011       {txt}Sum of wgt. {res}    340,154

{txt}50%    {res} .1347536                      {txt}Mean          {res} .0298439
                        {txt}Largest       Std. dev.     {res} .6557647
{txt}75%    {res}  .527168       .8803418
{txt}90%    {res} .8803418       .8803418       {txt}Variance      {res} .4300274
{txt}95%    {res} .8803418       .8803418       {txt}Skewness      {res}-.9592095
{txt}99%    {res} .8803418       .8803418       {txt}Kurtosis      {res} 3.996563
{txt}
{com}. 
. corr justice justice2
{txt}(obs=340,154)

             {c |}  justice justice2
{hline 13}{c +}{hline 18}
     justice {c |}{res}   1.0000
    {txt}justice2 {c |}{res}   1.0000   1.0000

{txt}
{com}. 
. corr diversity diversity2 
{txt}(obs=340,154)

             {c |} divers~y divers~2
{hline 13}{c +}{hline 18}
   diversity {c |}{res}   1.0000
  {txt}diversity2 {c |}{res}   1.0000   1.0000

{txt}
{com}. 
. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\J.PARK\Dropbox\Discrimination Project_for me\Organizational Diversity\2023 Version_Merging\FINAL\CFA_2019.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res} 8 Aug 2024, 13:27:17
{txt}{.-}
{smcl}
{txt}{sf}{ul off}